Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Java 11 Interview Questions and Answers

Related differences

Java 10 vs Java 11Java 11 vs Java 12

Ques 21. What is Transport Layer Security (TLS) 1.3 in Java 11?

Transport Layer Security, or TLS, is a cryptographic protocol that protects data exchanged over a computer network. TLS (Transport Layer Security) and is the successor to SSL (Secure Sockets Layer). TLS provides secure communication between web browsers and servers.

TLS 1.3 is a major revision of the TLS protocol and provides significant security and performance improvements over previous versions.

Is it helpful? Add Comment View Comments
 

Ques 22. What is ZGC: A Scalable Low-Latency Garbage Collector(Experimental) in Java 11?

The Z Garbage Collector, also known as ZGC, is a low latency scalable garbage collector designed to meet the following objectives.

  1. Pause times shall not exceed 10 ms
  2. Handle heaps ranging from a few hundred megabytes to multi terabytes in size
  3. Pause times do not increase with the size of the heap or live-set.

Is it helpful? Add Comment View Comments
 

Ques 23. Write about Deprecate the Nashorn JavaScript Engine in Java 11?

Below two JDK modules will be terminally deprecated, by using annotation @Deprecated(forRemoval=true):

  1. jdk.scripting.nashorn -- contains the jdk.nashorn.api.scripting and jdk.nashorn.api.tree packages.
  2. jdk.scripting.nashorn.shell -- contains the jjs tool. Running jjs will display a warning:

Is it helpful? Add Comment View Comments
 

Ques 24. Tell me about Deprecate the Pack200 Tools and API in Java 11.

Below three types will be deprecated from java.base module, i.e. with annotation @Deprecated(forRemoval = true):

  1. java.util.jar.Pack200
  2. java.util.jar.Pack200.Packer
  3. java.util.jar.Pack200.Unpacker

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2024 WithoutBook